import 'package:flutter/material.dart';

class KeyBoardSubmit extends StatefulWidget {

  final String name;
  final Color color;
  final VoidCallback onSubmit;

  const KeyBoardSubmit({Key key, this.name, this.color, this.onSubmit}) : super(key: key);

  @override
  _KeyBoardSubmitState createState() => _KeyBoardSubmitState();
}

class _KeyBoardSubmitState extends State<KeyBoardSubmit> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.all(14),
      child: FlatButton(
        color: Color(0xffFF3E39),
        shape: CircleBorder(
          side: BorderSide(
            width: 2,
            color: Color(0xffFF3E39).withOpacity(0.2)
          )
        ),
        child: Text(
          '=',
          style: TextStyle(
            color: Colors.white,
            fontSize: 22
          ),
        ),
        onPressed: widget.onSubmit,
      ),
    );
  }
}
